//
//  HKError.h
//  YNDemo
//
//  Created by 胡锦涛 on 2020/11/27.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, YNErrorType) {
    YNErrorTypeFail = 601,//失败
    YNErrorTypeSuccess,//成功
};

@interface HKError : NSError
/** 报错具体信息 */
@property (nonatomic, strong) NSString * errorMessage ;
/** 内部错误码 */
@property (nonatomic, assign) YNErrorType  errorType;
- (instancetype)initWithErrorType:(YNErrorType)errorType errorMessage:(NSString *)errorMessage;
@end

NS_ASSUME_NONNULL_END
